package ma.techit.pfe.agence.voyage.bo.implementation;

import java.util.List;

import ma.techit.pfe.agence.voyage.bo.interfaces.ServiceHotelBoIn;
import ma.techit.pfe.agence.voyage.dao.implementation.ServiceHotelDao;
import ma.techit.pfe.agence.voyage.model.ServiceHotel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("ServiceHotelBo")
@Transactional
public class ServiceHotelBo implements ServiceHotelBoIn {

	@Autowired
	ServiceHotelDao serviceHotelDao;
	
	public void save(ServiceHotel serviceHotel) {
		// TODO Auto-generated method stub
		serviceHotelDao.save(serviceHotel);
		
	}

	public void update(ServiceHotel serviceHotel) {
		// TODO Auto-generated method stub
		serviceHotelDao.update(serviceHotel);
		
	}

	public void delete(Long id) {
		// TODO Auto-generated method stub
		serviceHotelDao.delete(id);
		
	}

	public ServiceHotel findByID(Long id) {
		// TODO Auto-generated method stub
		return serviceHotelDao.findByID(id);
	}

	public List<ServiceHotel> findAll() {
		// TODO Auto-generated method stub
		return serviceHotelDao.findAll();
	}

	public List<ServiceHotel> find(int jtStartIndex, int jtPageSize) {
		// TODO Auto-generated method stub
		return serviceHotelDao.find(jtStartIndex, jtPageSize);
	}

	public int countAllService() {
		// TODO Auto-generated method stub
		return serviceHotelDao.countAllService();
	}

}
